package cn.fr.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

@Configuration
public class ConfConstConfig {
    @Value("${picturePath}")
    private  String picturePath;
    @Value("${queueSize}")
    private int queueSize;
    @Value("${scheduleRate.initialDelay}")
    private long initialDelay;
    @Value("${scheduleRate.period}")
    private long period;
    @Value("${scheduleRate.unit}")
    private String unit;

    public long getInitialDelay() {
        return initialDelay;
    }

    public long getPeriod() {
        return period;
    }

    public String getUnit() {
        return unit;
    }

    public String getPicturePath() {
        return picturePath;
    }

    public int getQueueSize() {
        return queueSize;
    }
}
